home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 12167 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: detroit.freenet.org!ab411
  2. From: ab411@detroit.freenet.org (David R. Conrad)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: getopt()
  5. Date: 29 Mar 1996 15:42:53 GMT
  6. Organization: Greater Detroit Free-Net, Detroit, MI
  7. Message-ID: <4jh0dt$ors@detroit.freenet.org>
  8. References: <3151FEF2.167E@mashie.ece.jhu.edu>
  9. Reply-To: ab411@detroit.freenet.org (David R. Conrad)
  10. NNTP-Posting-Host: detroit.freenet.org
  11.  
  12.  
  13. In a previous article, chenyang@mashie.ece.jhu.edu (Chenyang Xu) says:
  14. >   What is the role of colon in the string of getopt()? For example,
  15. >
  16. >while ((c = getopt(argc, argv, "f:o:cdDS")) != EOF)
  17.  
  18. It indicates the preceeding option letter takes an argument.  For
  19. instance, the program containing that line might be invoked with
  20. the following arguments:
  21.  
  22.    -ffoobar -o baz -d -cS
  23.  
  24. -- 
  25. David R. Conrad, conrad@detroit.freenet.org : PGP key on :  GDFN Hardware and
  26.    http://www.freenet.org/staff/conrad/     :  home page : Software Committee
  27. Union of Computer Hackers,  :  Is a tune greater than the hum of its parts?
  28. Local 2^859433-1 APL-CPIO   :    Is Twain more than the Sam of his parts?
  29.